<?php
/**
 * Created by PhpStorm.
 * User: xpz
 * Date: 2022/11/7
 * Time: 14:51
 */

namespace app\common\model;
use think\Model;
use think\config;

class Feedback extends Model
{
// 开启自动写入时间戳字段
    protected $autoWriteTimestamp = 'int';
    // 定义时间戳字段名
    protected $createTime = '';
    protected $updateTime = '';


    public function getIsAnswerAttr($value, $data)
    {
        if(empty($data['answer'])){
            return false;
        }
        return true;
    }

}

